USER.INT#
Description
Set of scratchpad variables to use for read and write. There are 10 independent variables (USER.INT1, …, USER.INT10),
USER.INT# is non-volatile. It is saved to and restored from the drive’s parameter configuration using DRV.NVSAVE and DRV.NVLOAD. This property allows USER.INT# to store application state in the drive across a power cycle or reset.
USER.INT# can be selected as an Action Table source by setting Action Source 23 (User Variable) with Source Parameter set to the variable ID. Because USER.INT# is non-volatile, edge-triggered tasks cannot rely on the User Variable source having a value of 0 at power-up. The corresponding USER.INT# value needs to be reset before setting it to the Condition Value that triggers the action. A best practice for edge-triggered actions is to first set USER.INT# to the Condition Value, then to 0, so that subsequent NV save operations leave the drive in a deterministic state.
Examples
Usage
Code
Map to Modbus -->MODBUSModBus is a serial communications protocol and is now the most commonly available means of connecting industrial electronic devices. ModBus is often used to connect a supervisory computer with a remote terminal unit in supervisory control and data acquisition (SCADA) systems. Versions of the ModBus protocol exist for serial port and Ethernet (it is widely used with TCP/IP over Ethernet).MAP 40001 USER.INT2
Setup Action -->ACTION5.TASK 12 -->ACTION5.TASKID 1 -->ACTION5.SOURCE 23 -->ACTION5.SOURCEID 2 -->ACTION5.CONDITION 12 -->ACTION5.CONDITIONVALUE 20 -->ACTION5.ACTION 1
Versions
Action | Version | Notes |
---|---|---|
Implemented | 02-04-00-000 |
|
General Information
Type |
Read/Write |
Units | N/A |
Range |
-32768 to 32767 |
Default Value | 0 |
Data Type |
Integer |
Stored in Non Volatile Memory | No |
See Also | ACTION#.SOURCE 23 |